import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const routes = [{
  name:'首页',
  path: '/',
  component: () => import('../components/layout/index.vue')
},{
  name:'login',
  path: '/login',
  component: () => import('../views/user/user-login-page.vue')
}, {
  name:'register',
  path: '/register',
  component: () => import('../views/user/user-register-page.vue')
},{
  path: '/user/info',
  component: () => import('../views/user/user-info.vue')
}]

const router = new Router({
  routes: routes
})



export default router